package com.bootdo.clouddo.domain.juejin;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

@Table(name="cms_juejin_tag")
@NameStyle(Style.normal)
public class TagDO implements Serializable{

	private static final long serialVersionUID = 6907862770826855068L;
	
	@Id
	@Column(name="ID",length=50, unique=true)
	private String id;
	
	private String title;
	private Boolean ngxCached;
	private Date ngxCachedTime;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Boolean getNgxCached() {
		return ngxCached;
	}
	public void setNgxCached(Boolean ngxCached) {
		this.ngxCached = ngxCached;
	}
	public Date getNgxCachedTime() {
		return ngxCachedTime;
	}
	public void setNgxCachedTime(Date ngxCachedTime) {
		this.ngxCachedTime = ngxCachedTime;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TagDO other = (TagDO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
}
